//
//  MoneyView.swift
//  Share
//
//  Created by admin on 2020/12/8.
//  Copyright © 2020 MBA. All rights reserved.
//

import SwiftUI

struct MoneyView: View {
    
    @State var value:String
    @State var symbol:String = "¥"
    
    var body: some View {
        HStack(alignment: .bottom){
        Text(symbol)
            .font(.caption)
        Text(value)
        }
    }
}

struct MoneyView_Previews: PreviewProvider {
    static var previews: some View {
        MoneyView(value: "99")
    }
}
